package com.kaili.basic.mapper;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.basic.pojo.dto.BasePdaQueryDto;
import com.kaili.basic.pojo.entity.BasePda;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by renzhikun on 18-6-20.
 */
@Mapper
public interface BasePdaMapper{

    void addBasePda(BasePda basePda);

    void deleteBasePda(Map<String, Object> map);

    void updateBasePda(BasePda basePda);

    List<BasePda> queryBasePda(Pagination page, BasePdaQueryDto dto);

    List<String> selectBySn(String pdaSn);

    List<String> veriBySn(String pdaSn);

    BasePda getBySn(@Param("pdaSn") String pdaSn);

    BasePda selectPdaByParams(BasePda basePda);


}
